package com.example.domain.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("product")
public class Product {
    @TableId
    private Long id;
    private Long categoryId;
    private String itemType;
    private String title;
    private String sellPoint;
    private Double price;
    private Integer num;
    private String image;
    private Integer status;
    private Integer priority;
    private String remark;
    @TableField(fill = FieldFill.INSERT)
    private String createdTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifiedTime;
    @TableField(fill = FieldFill.INSERT)
    private Long createdUserId;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long modifiedUserId;

    @TableField(exist = false)
    private String productCategoryName;
    // Generate: Getter and Setter、Generate hashCode() and equals()、toString()
}
